package thinkingJava.chapter14;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public class MapData {
	public static Map<Class<? extends Pet>, Integer> map(List<Class<? extends Pet>> keyList, int initVal) {
		Map<Class<? extends Pet>, Integer> result = new LinkedHashMap<Class<? extends Pet>, Integer>();

		for (Class<? extends Pet> pet : keyList) {
			result.put(pet, initVal);
		}

		return result;
	}
}
